<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//Dth HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dth">
<html>
<head>
<title>${good.name}</title>
</head>
<body>


<div class="modal-content" style="margin:20px;">
	<div class="modal-header">
		<h4>商品列表</h4>
	</div>
	<div class="modal-body">
		<table class="table table-striped">
			<thead>
				<tr>
					 <th>#</th>
					 <th style="text-align:center;">商品名称</th>
		      		 <th>属性</th>
		             <th>市场价</th>
		             <th>本店价</th>
		             <th>购买数量</th>
		             <th>小计</th>
		             <th>操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${items}" var="item" varStatus="i">
				<tr>
				  <td style="vertical-align:middle;">${i.index + 1}</td>
	              <td align="center" style="vertical-align:middle;">
	              	<a href="${ctx}/good/detail/${item.goodId}" target="_blank"><img src="${ctx}/resources/images/pic/01.jpg" width="50px" height="50px" border="0" title="P806" /></a><br />
	                <a href="${ctx}/good/detail/${item.goodId}" target="_blank" class="f6">${item.goodsInfo.code }</a>
	              </td>
	              <td style="vertical-align:middle;">
	              	颜色:灰色 <br />
					配件:数据线[20] <br />
				  </td>
	              <td style="vertical-align:middle;">￥${item.goodsInfo.srcPrice}元</td>
	              <td style="vertical-align:middle;">￥${item.goodsInfo.shopPrice}元</td>
	              <td style="vertical-align:middle;">
	                <input type="text" id="goods_number" value="${item.count }" size="4" class="inputBg" style="text-align:center " onblur="updateCount()"/>
	              </td>
	              <td style="vertical-align:middle;">￥4040.00元</td>
	              <td style="vertical-align:middle;">
	                <a href="javascript:if (confirm('您确实要把该商品移出购物车吗？')) location.href='${ctx}/shopcar/delete?goodId=${item.goodId}'; " class="f6">删除</a>
	              </td>
	            </tr>
	            </c:forEach>
			</tbody>
		</table>
	</div>
	<div class="modal-footer">
		<div class="fl">
		        购物金额小计 ￥4040.00元，比市场价 ￥4840.00元 节省了 ￥800.00元 (17%)        </div>
		<a href="${ctx}" class="btn btn-success">继续购物</a>
		<a href="${ctx}/flow/checkout" class="btn btn-info">马上结账</a>
	</div>
</div>


</body>
</html>